<!DOCTYPE html>
<html lang="en">
    <head>
        <title></title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <script src="./lib/vue-2.4.0.js"></script>
    </head>
    <body>
        <div id="app">
            <input type="button" @click= "flag = !flag" value="切换">
            <p v-if ="flag">这是啥玩意呢</p>
            <p v-show ="flag">这是啥玩意呢</p>
        </div>
        <script>
            var vm = new Vue({
                el: '#app',
                data: {
                    flag:true

                },
                methods:{

                }
            })
        </script>
    </body>
</html>